package cn.zc.mapper;
import cn.zc.entity.Dizhi;
import cn.zc.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface LoginMapper{
    @Select("select * from students where id = #{id} and mypassword = #{mypassword}")
    User login(User user);
    @Insert("insert into login_logs (student_id,login_time) values (#{id},#{time})")
    void insertLoginLog(String id,String time);
    @Select("select * from students where uuid = #{token}")
    User getUserByUUID(String token);
    @Update("update students set onebrowser =#{browserName} where id = #{id}")
    void updateonebrowser(String id, String browserName);
}
